package cn.zwz.data.entity;

import lombok.Data;

import java.io.Serializable;
@Data
public class GoodsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long goodid;
    private String goodname;
    private String picture;
    private Integer buynumber;
    private Float price;
    private Float total;

    // Getters and setters...

    public Float getTotal() {
        return this.buynumber * this.price;
    }
}
